<?php

namespace Biz\Jobs;

use Illuminate\Support\Facades\Mail;
use Illuminate\Contracts\Mail\Mailable;

/**
 * SystemEmailSendJob.
 *
 * @license [http://www.85do.com] [杭州永奥网络科技有限公司]
 * @copyright Copyright (c) 2018-2026 Hangzhou Yongao Technology Co., Ltd. All rights reserved.
 */
class SystemEmailSendJob extends Job
{
    /**
     * Mail.
     *
     * @var Mailable
     */
    public $mail;

    /**
     * Create a new job instance.
     *
     * @param Mailable $mail
     *
     * @return SystemEmailSendJob
     */
    public function __construct(Mailable $mail)
    {
        $this->mail = $mail;
    }

    /**
     * Execute the job.
     *
     * @return void
     */
    public function handle()
    {
        Mail::send($this->mail);
    }
}
